package com.tydic.borderer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tydic.borderer.domain.MutualHelpOrganization;
import com.tydic.borderer.domain.MutualHelpOrganizationMember;
import com.tydic.borderer.domain.bo.AddMutualHelpOrganizationMemberBo;
import com.tydic.borderer.domain.bo.MutualHelpOrganizationBo;
import com.tydic.borderer.domain.bo.QueryMutualHelpOrganizationBo;
import com.tydic.borderer.domain.vo.MutualHelpOrganizationMemberVo;
import com.tydic.borderer.domain.vo.MutualHelpOrganizationVo;
import com.tydic.common.mybatis.core.page.TableDataInfo;

import java.util.List;

public interface IMutualHelpOrganizationService {

    TableDataInfo<MutualHelpOrganizationVo> queryPage(QueryMutualHelpOrganizationBo bo);

    void save(MutualHelpOrganizationBo mutualHelpOrganizationRequest);

    void saveMember(AddMutualHelpOrganizationMemberBo addMutualHelpOrganizationMemberRequest);

    Page<MutualHelpOrganization> page(QueryMutualHelpOrganizationBo QueryMutualHelpOrganizationBo);

    List<MutualHelpOrganizationMember> getMembers(String id);

    MutualHelpOrganization get(String id);

    void delete(String id);

    void deleteMember(String id);

    MutualHelpOrganizationMember getMember(String id);

    boolean existsByName(String name);

    MutualHelpOrganizationMemberVo getByIdCardNumber(String idCardNumber);

    void save(MutualHelpOrganization mutualHelpOrganization, List<MutualHelpOrganizationMember> mutualHelpOrganizationMembers);
}
